package com.wwz.response;

import com.wwz.entity.Company;
import com.wwz.entity.Department;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("部门结果集")
public class DeptList {

    @ApiModelProperty("公司id")
    private String companyId;

    @ApiModelProperty("公司名称")
    private String companyName;

    @ApiModelProperty("公司联系人")
    private String companyMange;

    @ApiModelProperty("部门")
    private List<Department> depts;

    public DeptList(Company company,List depts){
        this.companyId = company.getId();
        this.companyName = company.getName();
        this.companyMange = company.getLegalRepresentative();
        this.depts = depts;
    }
}
